/**
 * @desc   清除对象里面空的属性
 * @param  {Object}
 * @return {Object}
 */

function deleteEmptyObjItem(obj) {
    for (let i in obj) {
        let value = obj[i];
        if (value === null || value === undefined || value === "" || !value && value !== 0) {
            delete obj[i];
        }
    }
    return obj;
};

module.exports = deleteEmptyObjItem
